import base from './base'
const localUrl = 'https://m.yimg.vip/mock/5c91d04c56c8f704fd3a79f3/study-api'
/**
 * 学历讲堂接口
 */

export default class lecture extends base {
	// 列表
	static getItemList(data) {
		let url = `${this.baseUrl}/academic/getItemList`
		return this.post(url, data)
	}
	// 点赞
	static doAgree(data) {
		let url = `${this.baseUrl}/academic/doAgree`
		return this.post(url, data)
	}
	// 详情
	static getItemDetail(data) {
		let url = `${this.baseUrl}/academic/getItemDetail`
		return this.post(url, data)
	}
	// 获取accessToken
	static accessToken(playWebcastId) {
		let url = `${this.baseUrl}/academic/accessToken?playWebcastId=${playWebcastId}`
		return this.post(url)
	}
}
